package com.honglv.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GetAttractionVO {
    // 景点id
    private Long id;

    // 景区名称
    private String name;

    // 图片
    private List<String> pictures;

    // 景区介绍内容
    private String context;

    // 城市
    private String city;

    // 浏览量
    private Long views;

    // 点赞量
    private Long like;

    // 点赞状态，0未点赞，1已经点赞
    private Integer likeStatus;

    // 景点摘要
    private String summary;

    public void setPictures(String pictures) {
        this.pictures = new ArrayList<>(Arrays.asList(pictures.split(",")));
    }
}
